﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Model
{
   public class users
    {
        /* 	user_id : 主键，自动增长列                                                                      */
        /* 	user_name : 用户名                                                                         */
        /* 	user_true_name : 真实姓名                                                                   */
        /* 	user_password : 密码                                                                      */

        [Display(Name = "编号")]
        public int user_id { get; set; }

        [Display(Name = "用户名")]
        [Required(ErrorMessage = "请输入用户名")]
        public string user_name { get; set; }

        [Display(Name = "真实姓名")]
        [Required(ErrorMessage = "请输入真实姓名")]
        public string user_true_name { get; set; }


        [Display(Name = "密码")]
        [Required(ErrorMessage = "请输入密码")]
        [RegularExpression(@"\w{6,}", ErrorMessage = "密码长度不少于6位")]
        public string user_password { get; set; }
    }
}
